#ifndef _INIT_SOCKETS_H_
#define _INIT_SOCKETS_H_

#include <stdio.h>
#include <winsock2.h>

static int CStarted = 0;
static WSAData W;
bool InitSockets();
sockaddr_in socketAddr(const char* addr);

#define STATE_NONE 0
#define STATE_LISTEN 1
#define STATE_ACCEPT 2
#define STATE_CONNECT 3

struct CSocket
{
	SOCKET sock;
	sockaddr_in sockAddr;
};

#endif